package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.gourdchild.GourdChildBox;
import com.yanqu.road.entity.activity.gourdchild.GourdChildNotice;
import com.yanqu.road.entity.activity.gourdchild.GourdChildUserData;
import com.yanqu.road.entity.activity.gourdchild.config.GourdLevelBookInfo;
import com.yanqu.road.entity.activity.gourdchild.config.GourdLevelInfo;
import com.yanqu.road.entity.activity.gourdchild.config.GourdLevelLotusInfo;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class GourdChildBussiness {

    public static Map<Integer, GourdLevelBookInfo> getGourdChildLevelBookInfo(int activityId) {
        return DaoHelper.getGourdChildConfigDaoImpl().getGourdLevelBookInfoList(activityId);
    }

    public static List<GourdLevelInfo> getGourdChildLevelInfo(int activityId) {
        return DaoHelper.getGourdChildConfigDaoImpl().getGourdLevelInfoList(activityId);
    }

    public static Map<Integer, GourdLevelLotusInfo> getGourdChildLotusInfo(int activityId) {
        return DaoHelper.getGourdChildConfigDaoImpl().getGourdLevelLotusInfoList(activityId);
    }

    public static boolean addGourdChildUserData(GourdChildUserData userData) {
        return DaoHelper.getGourdChildUserDataDaoImpl().add(userData);
    }

    public static boolean updateGourdChildUserData(GourdChildUserData userData) {
        return DaoHelper.getGourdChildUserDataDaoImpl().update(userData);
    }

    public static GourdChildUserData getGourdChildUserData(int activityId, long userId) {
        return DaoHelper.getGourdChildUserDataDaoImpl().getGourdChildUserData(activityId, userId);
    }

    public static GourdChildBox getGourdChildBoxData(int activityId) {
        return DaoHelper.getGourdChildBoxDaoImpl().getGourdChildBox(activityId);
    }

    public static List<GourdChildNotice> getGourdChildNoticeList(int activityId, int limit) {
        return DaoHelper.getGourdChildNoticeDaoImpl().getGourdChildNotice(activityId, limit);
    }

    public static boolean addGourdChildBoxData(GourdChildBox box) {
        return DaoHelper.getGourdChildBoxDaoImpl().add(box);
    }

    public static boolean updateGourdChildBoxData(GourdChildBox box) {
        return DaoHelper.getGourdChildBoxDaoImpl().update(box);
    }

    public static boolean addGourdChildNotice(GourdChildNotice notice) {
        return DaoHelper.getGourdChildNoticeDaoImpl().add(notice);
    }
}
